package com.hassean.we.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 地区信息表(省市区县/邮政编码/区号)
 * </p>
 *
 * @author yajun
 * @since 2019-07-01
 */
@TableName("ipphone_area")
public class IpphoneArea extends Model<IpphoneArea> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("ENTITY_ID")
    private Long entityId;
    /**
     * 名称
     */
    @TableField("AREA_NAME")
    private String areaName;
    /**
     * 父地区ID
     */
    @TableField("PARENT_ID")
    private Long parentId;
    /**
     * 父地区名称
     */
    @TableField("PARENT_NAME")
    private String parentName;
    @TableField("AREA_DEPTH")
    private String areaDepth;
    /**
     * Y:已标记逻辑删除；N:未标记删除。
     */
    @TableField("DEL_FLAG")
    private String delFlag;
    /**
     * 备注
     */
    @TableField("BAK")
    private String bak;


    public Long getEntityId() {
        return entityId;
    }

    public void setEntityId(Long entityId) {
        this.entityId = entityId;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getAreaDepth() {
        return areaDepth;
    }

    public void setAreaDepth(String areaDepth) {
        this.areaDepth = areaDepth;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getBak() {
        return bak;
    }

    public void setBak(String bak) {
        this.bak = bak;
    }

    @Override
    protected Serializable pkVal() {
        return this.entityId;
    }

    @Override
    public String toString() {
        return "IpphoneArea{" +
        ", entityId=" + entityId +
        ", areaName=" + areaName +
        ", parentId=" + parentId +
        ", parentName=" + parentName +
        ", areaDepth=" + areaDepth +
        ", delFlag=" + delFlag +
        ", bak=" + bak +
        "}";
    }
}
